import request from "@/apps/admin/units/request";

import {HttpResultData} from "@/types/project";


/**
 * 获取数据表
 */
export const getSmsSendLogApi = (where: any): Promise<HttpResultData<any>> => request(`/system-sms/list`, where)/**


 * 获取数据表
 */
export const getSmsSendLogExpApi = (where: any): Promise<HttpResultData<any>> => request(`/system-sms/list-exp`, where)


/**
 * 获取短信模板列表
 * @return {*}
 */
export const getSmsTemplateListApi = (): Promise<HttpResultData<any>> => request(`/system-sms/template-list`)



/**
 * 获取短信信息
 * @return {*}
 */
export const getSmsDrivesApi = (): Promise<HttpResultData<any>> => request(`/system-sms/drives`)


/**
 * 修改短信模板
 * @param data
 * @constructor
 */
export const UpdateSmsTemplateDataApi = (data: any): Promise<HttpResultData<any>> => request(`/system-sms/update-template`, data, 'POST')